package com.txhy.certificatechain.ui.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/*
 * -----------------------------------------------------------------
 * Copyright (C) 2018-2030, by your company, All rights reserved.
 * -----------------------------------------------------------------
 * 文    件: FragPagerAdapter.java
 * 作    者: 侯建军
 * 版    权: 1.0.0
 * 描    述:
 * 创建时间: 2018/9/20 9:44
 * 更新时间：2018/9/20 9:44
 * -----------------------------------------------------------------
 * 2018/9/20 9:44: 创建 FragPagerAdapter.java (侯建军);
 * -----------------------------------------------------------------
 */
public class FragPagerAdapter extends FragmentPagerAdapter {
    private List<Fragment> mFragments;
    public FragPagerAdapter(FragmentManager fm, List<Fragment> fragments) {
        super(fm);
        mFragments = fragments;
    }
    @Override
    public Fragment getItem(int position) {
        return mFragments.get(position);
    }
    @Override
    public int getCount() {
        return mFragments.size();
    }
}

